﻿using SX.Data;
using SX.Utils.Log;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SX.Core
{
    public class App
    {
        /// <summary>
        /// 默认数据库连接的名称
        /// </summary>
        public static string DB_DEFAULT_CONN_NAME = "SYS";

        //配置自动更新的字段        
        /// <summary>
        /// 更新人
        /// </summary>
        public static string FIELD_UPDATE_PERSON = "ModifyBy";
        /// <summary>
        /// 更新时间
        /// </summary>
        public static string FIELD_UPDATE_DATE = "ModifyTime";
        /// <summary>
        /// 创建人
        /// </summary>
        public static string FIELD_CREATE_PERSON = "CreateBy";
        /// <summary>
        /// 创建时间
        /// </summary>
        public static string FIELD_CREATE_DATE = "CreateTime";

        public static Action<CommandEventArgs> OnDbExecuting = null;

        public static void Init()
        {
            LogHelper.Init();
        }
     }
}
